/*
 * IlluminateDisplay.h
 *
 *  Created on: Feb 6, 2011
 *      Author: kmueller
 */

#ifndef ILLUMINATEDISPLAY_H_
#define ILLUMINATEDISPLAY_H_

#include <QTimer>

//#ifdef Q_WS_HILDON
#ifdef Q_WS_MAEMO_5
#include <libosso.h>
#endif

class MainWindow;

class IlluminateDisplay : public QTimer{
	Q_OBJECT

public:
	IlluminateDisplay(MainWindow* parent);
	~IlluminateDisplay();

public slots:
	void illuminate();
	void updateStatus();

private:
	//#ifdef Q_WS_HILDON
#ifdef Q_WS_MAEMO_5
	osso_context_t* ossoContext; ///< The OSSO context for backlight
#endif
};

#endif /* ILLUMINATEDISPLAY_H_ */
